//
//  DrawerViewController.swift
//  QQ
//
//  Created by hjl on 2017/6/8.
//  Copyright © 2017年 hjl. All rights reserved.
//

import UIKit

class DrawerViewController: BaseDrawerViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // 1.通过storyboard获取控制器
        let menuVC = UIStoryboard(name: "MenuVC", bundle: nil).instantiateInitialViewController()!
        
        //let menuVC = UIViewController.init()
        menuVC.view.frame = menuView.bounds
        menuVC.view.backgroundColor = UIColor.orange
        menuView.addSubview(menuVC.view)
        self.addChildViewController(menuVC)
        
        // 1.通过storyboard获取控制器
        let mainVC = UIStoryboard(name: "MainVC", bundle: nil).instantiateInitialViewController()!
        
        //let mainVC = UIViewController.init()
        mainVC.view.frame = mainView.bounds
        mainVC.view.backgroundColor = UIColor.red
        mainView.addSubview(mainVC.view)
        self.addChildViewController(mainVC)

    }

}
